package com.extension.company.contract;

import com.extension.company.common.mvp.IModel;
import com.extension.company.common.mvp.IView;
import com.extension.company.model.entity.AddressListData;

import java.util.List;

public interface AddressListContract {

	interface Mode extends IModel {
		void mAddListRequest(AddressListCallBack callBack); // 收货地址的网络请求
	}

	interface View extends IView {
		void dataCallBackSuccess(List<AddressListData.DataBean.AddressBean> list); // 数据请求返回成功

		void requestFaile(String msg); // 数据返回失败

		void deleteSuccess(String msg); // 数据删除失败

		void defaultAddress(boolean isSetSuccess); // 设置默认收货地址

	}

	interface AddressListCallBack {  // mode 回调给P层的接口

		void AddressListCallBackSuccessful(List<AddressListData.DataBean.AddressBean> list);  // 网络请求成功

		void AddressListCallBackFaile(String msg);
	}

	interface deleteItemCallBack { // 删除item
		void deleteItem(String msg);
	}

	interface defaultAddressCallBack { // 默认收货地址
		void defaultAddressCallBack(boolean isSetDefaultSuceess);
	}
}
